<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>新闻管理</title>
    <script type="text/javascript" src="../../static/jquery.min.js"></script>
    <script type="text/javascript" src="../../static/jquery.1.8.js"></script>
    <script type="text/javascript" src="../../static/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../../static/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="../../static/kindeditor/kindeditor.js"></script>
    <script type="text/javascript" src="../../static/kindeditor/kindeditor-all.js"></script>
    <script type="text/javascript" src="../../static/kindeditor/kindeditor-all-min.js"></script>
    <script type="text/javascript" src="../../static/kindeditor/kindeditor-min.js"></script>
    <script type="text/javascript" src="../../static/kindeditor/lang/zh_CN.js"></script>
    <script type="text/javascript" src="../../static/js/main/newsManage.js?v=6611022"></script>
    <script type="text/javascript" src="../../static/js/page.js?v=966333"></script>
    <link rel="stylesheet" type="text/css" href="../../static/themes/default/easyui.css?v=2011">
    <link rel="stylesheet" type="text/css" href="../../static/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="../../static/css/common.css">
</head>
<script language="JavaScript">

</script>

<script type="text/javascript">
    var editor;
    KindEditor.ready(function (K) {
        editor = K.create('#NewsContent');
        var options = {
            cssPath: 'css/index.css',
            filterMode: true,
        };

    });
    function validate(){
        editor.sync();
        document.forms['newsManage'].submit();
    }

</script>
<style type="text/css">
    td {text-overflow:ellipsis;white-space:nowrap;}
</style>
<body>
<form id="newsForm">
    <div id="p" class="easyui-panel" title="查询" style="width:1157px;height:80px;">
        <div>
            <span>新闻标题:</span>
            <input type="text" id="neswTitle" name="neswTitle" value=""/>
            <span>&nbsp;&nbsp;&nbsp;作者:</span>
            <input type="text" id="pro_name" name="pro_name" value=""/>
            <span>&nbsp;&nbsp;&nbsp;新闻类型：</span>
            <select class="easyui-combobox" id="type" name="type" style="width:100px;">
                <option value=""></option>
                <option value="现代诗">现代诗</option>
                <option value="新增服务">新增服务</option>
            </select>

            <span>&nbsp;&nbsp;&nbsp;发布时间：</span>
            <input class="easyui-datetimebox" name="firsTtime" id="firsTtime" style="width:160px">
            <span>至</span>
            <input class="easyui-datetimebox" name="lastTime" id="lastTime" style="width:160px">
            <div style="float:right;margin-right: 10px;">
                <a href="javascript:void(0)" class="easyui-linkbutton" id="select" onclick="newsManage.load()">查询</a>
                <a href="javascript:void(0)" class="easyui-linkbutton" id="reset" onclick="newsManage.clearForm('newsForm')">重置</a>
            </div>
        </div>
    </div>

    <div>

        <div>
            <a href="javascript:void(0)" class="easyui-linkbutton" onclick="newsManage.addPopu();"
               data-options="iconCls:'icon-add'">添加新闻</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" src="" onclick="newsManage.Recycle()"
               data-options="iconCls:'icon-remove'">回收站</a>
        </div>
        <table id="dg" title="新闻列表" style="width:1157px;height:600px;padding:10px;">
            <thead>
            </thead>
        </table>
    </div>
</form>
<!-- 添加新闻 -->
<div id="w" class="easyui-window" title="添加新闻" data-options="modal:true,closed:true"
     style="width:750px;height:600px;padding:10px;float: right; ">
    <div class="easyui-layout" data-options="fit:true">
        <form id="newsManage" onsubmit="Javascript:editor.sync();" method="post" enctype="multipart/form-data">
            <div data-options="region:'center'" style="padding:10px;">

                <table id="ss">

                    <tr>
                        <td style=""><span>新闻标题：</span></td>
                        <td><textarea id="Title" name="Title"
                                      style="width:360px;height: 18px;"
                                      class="easyui-validatebox"  value=""></textarea></td>
                    </tr>
                    <tr id="showPosition" style="">
                        <td ><span>新闻类型：</span></td>
                        <td><select class="easyui-combobox" name="NewsType" id="NewsType" style="width:155px;" required=true >
                            <option value="新闻快讯">新闻快讯</option>
                            <option value="新增服务">新增服务</option>
                            <option value="活动公告">活动公告</option>
                        </select></td>

                    </tr>
                    <tr>
                        <td style=""><span>作者：</span></td>
                        <td> <input type="text" id="Author" name="Author" value=""/></td>
                    </tr>

                    <tr>
                        <td>内容:</td>
                        <td>
                            <textarea name="NewsContent" id="NewsContent" class="easyui-kindeditor" style="width: 90%; height:380px;"></textarea>

                        </td>

                    </tr>
                </table>
            </div>
            <div data-options="region:'south',border:false" style="text-align:right;padding:5px 0 0;">
                <a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:void(0)"
                   onclick="newsManage.save();">确定</a>
                <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)"
                   onclick="newsManage.closePopu();">取消</a>
            </div>
        </form>
    </div>
</div>
</div>
</body>
</html>